package cn.gson.springmvc.controller;

import cn.gson.springmvc.model.Vo.LZLtjvo;
import cn.gson.springmvc.model.services.LZLUserDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class LZLUserDetailController {
    @Autowired
    LZLUserDetailService us;


    @RequestMapping("user-ruzhi")
    @ResponseBody
    public void savePurchase(@RequestBody LZLtjvo lzltjvo){
        System.out.println(lzltjvo);
        us.savePurchase(lzltjvo);
    }


}
